package com.mf.entity.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.mf.groups.AddGroupsInterface;
import com.mf.groups.UpdateGroupsInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: lmf
 * @Create: 2025/3/8 20:50
 * Description:  用户注册,编辑请求参数
 */
@Data
public class UserReq {
    @NotNull(message = "用户id不能为空",groups = {UpdateGroupsInterface.class})
    private Integer id;

    @Schema(description = "用户名称")
    @NotBlank(message = "用户名称不能为空",groups = {AddGroupsInterface.class,UpdateGroupsInterface.class})
    private String uName;


    @Schema(description = "邮箱")
    private String email;

}
